import sys
from PyQt5 import Qt

from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QLabel, QLineEdit, QDesktopWidget
from PyQt5 import QtCore, QtWidgets


class the_window(QWidget):
    def __init__(self):
        super().__init__()
        self.setWindowTitle("人人对抗")
        self.resize(1000, 800)
        old_x, old_y, width, height = self.frameGeometry().getRect()
        the_center_pos = QDesktopWidget().availableGeometry().center()
        x = the_center_pos.x()
        y = the_center_pos.y()
        self.move(x - int(width/2), y - int(height/2))
#
        _0_0_0 = QPushButton(self)
        _0_0_0.setGeometry(30, 50, 80, 20)

        _0_0_1 = QPushButton(self)
        _0_0_1.setGeometry(130, 50, 80, 20)

        _0_0_2 = QPushButton(self)
        _0_0_2.setGeometry(230, 50, 80, 20)

        _0_0_3 = QPushButton(self)
        _0_0_3.setGeometry(330, 50, 80, 20)

        _0_0_4 = QPushButton(self)
        _0_0_4.setGeometry(430, 50, 80, 20)
#
        _1_0_0 = QPushButton(self)
        _1_0_0.setGeometry(10, 70, 20, 80)

        _1_1_0 = QPushButton(self)
        _1_1_0.setGeometry(110, 70, 20, 80)

        _1_2_0 = QPushButton(self)
        _1_2_0.setGeometry(210, 70, 20, 80)

        _1_3_0 = QPushButton(self)
        _1_3_0.setGeometry(310, 70, 20, 80)

        _1_4_0 = QPushButton(self)
        _1_4_0.setGeometry(410, 70, 20, 80)

        _1_5_0 = QPushButton(self)
        _1_5_0.setGeometry(510, 70, 20, 80)
#
        _0_1_0 = QPushButton(self)
        _0_1_0.setGeometry(30, 150, 80, 20)

        _0_1_1 = QPushButton(self)
        _0_1_1.setGeometry(130, 150, 80, 20)

        _0_1_2 = QPushButton(self)
        _0_1_2.setGeometry(230, 150, 80, 20)

        _0_1_3 = QPushButton(self)
        _0_1_3.setGeometry(330, 150, 80, 20)

        _0_1_4 = QPushButton(self)
        _0_1_4.setGeometry(430, 150, 80, 20)
#
        _1_0_1 = QPushButton(self)
        _1_0_1.setGeometry(10, 170, 20, 80)

        _1_1_1 = QPushButton(self)
        _1_1_1.setGeometry(110, 170, 20, 80)

        _1_2_1 = QPushButton(self)
        _1_2_1.setGeometry(210, 170, 20, 80)

        _1_3_1 = QPushButton(self)
        _1_3_1.setGeometry(310, 170, 20, 80)

        _1_4_1 = QPushButton(self)
        _1_4_1.setGeometry(410, 170, 20, 80)

        _1_5_1 = QPushButton(self)
        _1_5_1.setGeometry(510, 170, 20, 80)
#
        _0_2_0 = QPushButton(self)
        _0_2_0.setGeometry(30, 250, 80, 20)

        _0_2_1 = QPushButton(self)
        _0_2_1.setGeometry(130, 250, 80, 20)

        _0_2_2 = QPushButton(self)
        _0_2_2.setGeometry(230, 250, 80, 20)

        _0_2_3 = QPushButton(self)
        _0_2_3.setGeometry(330, 250, 80, 20)

        _0_2_4 = QPushButton(self)
        _0_2_4.setGeometry(430, 250, 80, 20)
#
        _1_0_2 = QPushButton(self)
        _1_0_2.setGeometry(10, 270, 20, 80)

        _1_1_2 = QPushButton(self)
        _1_1_2.setGeometry(110, 270, 20, 80)

        _1_2_2 = QPushButton(self)
        _1_2_2.setGeometry(210, 270, 20, 80)

        _1_3_2 = QPushButton(self)
        _1_3_2.setGeometry(310, 270, 20, 80)

        _1_4_2 = QPushButton(self)
        _1_4_2.setGeometry(410, 270, 20, 80)

        _1_5_2 = QPushButton(self)
        _1_5_2.setGeometry(510, 270, 20, 80)
#
        _0_3_0 = QPushButton(self)
        _0_3_0.setGeometry(30, 350, 80, 20)

        _0_3_1 = QPushButton(self)
        _0_3_1.setGeometry(130, 350, 80, 20)

        _0_3_2 = QPushButton(self)
        _0_3_2.setGeometry(230, 350, 80, 20)

        _0_3_3 = QPushButton(self)
        _0_3_3.setGeometry(330, 350, 80, 20)

        _0_3_4 = QPushButton(self)
        _0_3_4.setGeometry(430, 350, 80, 20)
#
        _1_0_3 = QPushButton(self)
        _1_0_3.setGeometry(10, 370, 20, 80)

        _1_1_3 = QPushButton(self)
        _1_1_3.setGeometry(110, 370, 20, 80)

        _1_2_3 = QPushButton(self)
        _1_2_3.setGeometry(210, 370, 20, 80)

        _1_3_3 = QPushButton(self)
        _1_3_3.setGeometry(310, 370, 20, 80)

        _1_4_3 = QPushButton(self)
        _1_4_3.setGeometry(410, 370, 20, 80)

        _1_5_3 = QPushButton(self)
        _1_5_3.setGeometry(510, 370, 20, 80)
#
        _0_4_0 = QPushButton(self)
        _0_4_0.setGeometry(30, 450, 80, 20)

        _0_4_1 = QPushButton(self)
        _0_4_1.setGeometry(130, 450, 80, 20)

        _0_4_2 = QPushButton(self)
        _0_4_2.setGeometry(230, 450, 80, 20)

        _0_4_3 = QPushButton(self)
        _0_4_3.setGeometry(330, 450, 80, 20)

        _0_4_4 = QPushButton(self)
        _0_4_4.setGeometry(430, 450, 80, 20)
#
        _1_0_4 = QPushButton(self)
        _1_0_4.setGeometry(10, 470, 20, 80)

        _1_1_4 = QPushButton(self)
        _1_1_4.setGeometry(110, 470, 20, 80)

        _1_2_4 = QPushButton(self)
        _1_2_4.setGeometry(210, 470, 20, 80)

        _1_3_4 = QPushButton(self)
        _1_3_4.setGeometry(310, 470, 20, 80)

        _1_4_4 = QPushButton(self)
        _1_4_4.setGeometry(410, 470, 20, 80)

        _1_5_4 = QPushButton(self)
        _1_5_4.setGeometry(510, 470, 20, 80)
#
        _0_5_0 = QPushButton(self)
        _0_5_0.setGeometry(30, 550, 80, 20)

        _0_5_1 = QPushButton(self)
        _0_5_1.setGeometry(130, 550, 80, 20)

        _0_5_2 = QPushButton(self)
        _0_5_2.setGeometry(230, 550, 80, 20)

        _0_5_3 = QPushButton(self)
        _0_5_3.setGeometry(330, 550, 80, 20)

        _0_5_4 = QPushButton(self)
        _0_5_4.setGeometry(430, 550, 80, 20)





if __name__ == '__main__':
    app = QApplication(sys.argv)

    w_pvp = the_window()

    w_pvp.show()

    app.exec()